/**
 * All Rights Reserved , Copyright (C) 2022 , 青岛鼎信通讯股份有限公司
 *
 * MpmProjectSquaredActionAuto
 * 销售项目九宫格
 *
 * 修改纪录
 * 2022-11-09 版本：1.0 houyuhang 创建。
 * @version 版本：1.0
 * @author 作者：houyuhang
 * 创建日期：2022-11-09
 */

package com.topscomm.mpm.controller.auto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.topscomm.cbo.pojo.CboItemDetailsEntity;
import com.topscomm.cbo.pojo.CboItemsEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.mpm.MpmController;
import com.topscomm.mpm.pojo.MpmProjectSquaredEntity;
import com.topscomm.mpm.service.IMpmProjectSquaredService;
import com.topscomm.pub.vo.ResponseResult;

public class MpmProjectSquaredControllerAuto extends MpmController<MpmProjectSquaredEntity, IMpmProjectSquaredService> {
	/**
	 *
	 * @description:
	 * @param paraMap
	 * @return
	 * @author: houyuhang
	 * @date: 2022-11-09
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();

		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		super.dataCodeList(paraMap);
		return ResponseResult.ok(codeMap);
	}
}

